import request from '../utils/request'
/**
 * 搜索相关接口
 */
export default {
  // 获取热门标签
  selectHotTag () {
    return request({
      url: 'gds/hotTag/selectHotTag.do_',
      method: 'get'
    })
  },
  // 根据商品名称模糊查询商品列表
  searchByGoodsName (_goodsName) {
    const data = {
      name: _goodsName
    }
    return request({
      url: 'gds/goods/searchByGoodsName.do_',
      method: 'post',
      data
    })
  }
}
